﻿using InformaticaDiary.Common;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace InformaticaDiaryWeb.Models
{

    public class SearchCaseNoModel
    {
        [Required]
        [Display(Name = "Case Type")]
        public long CaseTypeID { get; set; }
        public IEnumerable<SelectListItem> listCaseType { get; set; }

        [Required]
        [Display(Name = "Case Year")]
        public int CaseYear { get; set; }
        public IEnumerable<SelectListItem> listCaseYear { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 1)]
        [DataType(DataType.Text)]
        [Display(Name = "Case No.")]
        public string strCaseNo { get; set; }
    }

    public class SearchPetitionerModel
    {
        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
        [DataType(DataType.Text)]
        [Display(Name = "Petitioner Name")]
        public string PetitionerName { get; set; }

        [Display(Name = "Case Year")]
        public int CaseYear { get; set; }
        public IEnumerable<SelectListItem> listCaseYear { get; set; }
    }
    public class SearchRespondantModel
    {
        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
        [DataType(DataType.Text)]
        [Display(Name = "Respondant Name")]
        public string RespondantName { get; set; }

        [Display(Name = "Case Year")]
        public int CaseYear { get; set; }
        public IEnumerable<SelectListItem> listCaseYear { get; set; }
    }

    public class SearchJudgementModel
    {
        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 5)]
        [DataType(DataType.Text)]
        [Display(Name = "Order/Judgement")]
        public string OrderJudgement { get; set; }
    }
}